const logger = require('./utils/logger');

process.on('uncaughtException', (err, origin) => {
    console.error(err);
    logger.error(`uncaughtException: ${err} | ${origin}`);
});

process.on('unhandledRejection', (reason, promise) => {
    logger.error(`unhandledRejection: ${promise} | ${reason}`);
});
